use strict;

chdir "C:/Program Files/Programmer's Notepad";

open PN, 'pn.exe --allowmulti|' or die "Unable to create PN process: $!";
while (<PN>) {
	print;
}
close PN;
